package model;

/**
 * @author CY
 * @date 2023/01/04 14:48
 **/
public class JoinTeamMsg2 {
    private  Race race;
    private  Team team;
    private User leader;

    public JoinTeamMsg2() {
    }

    public JoinTeamMsg2(Race race, Team team, User leader) {
        this.race = race;
        this.team = team;
        this.leader = leader;
    }


    public Race getRace() {
        return race;
    }

    public void setRace(Race race) {
        this.race = race;
    }

    public Team getTeam() {
        return team;
    }

    public void setTeam(Team team) {
        this.team = team;
    }

    public User getLeader() {
        return leader;
    }

    public void setLeader(User leader) {
        this.leader = leader;
    }

    @Override
    public String toString() {
        return "JoinTeamMsg2{" +
                "race=" + race +
                ", team=" + team +
                ", leader=" + leader +
                '}';
    }
}
